<%@ page import="javax.servlet.http.HttpSession" %>
<%
try {
	if (request.getSession(false) == null) {
		response.sendRedirect(request.getContextPath()+"/index.jsp?loginError=2");
		return;
	}
	else if (request.getSession(false).getAttribute("init") == null) {
		response.sendRedirect(request.getContextPath()+"/index.jsp?loginError=2");
		return;
	}
	else {
	//invalidate Session	
	request.getSession(false).removeAttribute("init");
	request.getSession(false).invalidate(); %>
	
<html>
<head>
	<!-- meta Data pour la page -->
	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
	<meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">
	<meta http-equiv="Pragma" Content="no-cache">
	<title>LOGOUT...</title>
	<script language="javascript">
		function logMeOut() {
			clearTimeout(Timer);
			document.location.href='logout_buffer2.jsp';
		}
	</script>
</head>
<body>
	<script language=javascript>
		var Timer;
		clearTimeout(Timer);
		Timer = setTimeout("logMeOut()",500);
	</script>
	LOGOUT...
</body>
</html>
		
<%	}
}
catch (Exception objEx) {
	response.sendRedirect(request.getContextPath()+"/index.jsp?loginError=2");
	return;
}
%>
